﻿namespace DoNet.WechatPay.V2.Entitys
{
    public interface IRequestBase
    {
        /// <summary>
        /// 服务商的APPID
        /// 是
        /// </summary>
        string appid { set; get; }
        /// <summary>
        /// 商户号
        /// 是
        /// </summary>
        string mch_id { set; get; }
        /// <summary>
        /// 子商户公众账号/应用ID
        /// 否
        /// </summary>
        string sub_appid { set; get; }
        /// <summary>
        /// 子商户号
        /// 是
        /// </summary>
        string sub_mch_id { set; get; }
    }

    public class RequestBase : IRequestBase
    {
        /// <summary>
        /// 服务商的APPID
        /// 是
        /// </summary>
        public string appid { set; get; } = string.Empty;
        /// <summary>
        /// 商户号
        /// 是
        /// </summary>
        public string mch_id { set; get; } = string.Empty;
        /// <summary>
        /// 子商户公众账号/应用ID
        /// 否
        /// </summary>
        public string sub_appid { set; get; } = string.Empty;
        /// <summary>
        /// 子商户号
        /// 是
        /// </summary>
        public string sub_mch_id { set; get; } = string.Empty;
    }
}
